package designpattern.factory;

public class MilkTest {
    public static void main(String[] args) {
        SimpleFactory simpleFactory = new SimpleFactory();
        Milk mike = simpleFactory.getMike("蒙牛");
        System.out.println(mike.getName());

        MethodFactory methodFactory = new TelusuFactory();
        System.out.println(methodFactory.getMilk());
    }
}
